include ./define.makefile

.PHONY:all

all:${PROTOCGEN_FILE_PATH}/Test_proto_finish 

${PROTOCGEN_FILE_PATH}/Test_proto_finish:${RESDB_META_PATH}/E_Test.proto
	mkdir -p ${PROTOCGEN_FILE_PATH}
	mkdir -p ${NEW_RESMETAS_FILE_PATH}
	rm -rf ${PROTOCGEN_FILE_PATH}/Test_proto_finish
	${PROTOC} $^ --plugin=protoc-gen-nanopb=${NANOPB_PLUGIN} -I${NANOPB_PLUGIN_PROTO} -I${THIRD_PARTY_INC_PATH} -I${PROTOCOL_PATH} -I${RESDB_META_PATH} -I${PROTOCOL_SS_LOGIC_PATH} ${ALL_COMMON_LOGIC_META_PATH} --cpp_out=${PROTOCGEN_FILE_PATH} --nanopb_out=-e.nanopb:${PROTOCGEN_FILE_PATH} --include_imports --descriptor_set_out=${PROTOCGEN_FILE_PATH}/Test.proto.ds
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_Test.pb.h ${PROTOCGEN_FILE_PATH}/E_Test.pb.cc ${PROTOCGEN_FILE_PATH}/E_Test.nanopb.h ${PROTOCGEN_FILE_PATH}/E_Test.nanopb.cc " --dst=${NEW_RESMETAS_FILE_PATH}/
	touch ${PROTOCGEN_FILE_PATH}/Test_proto_finish


